ALL=czhpack.exe
SRC=$(wildcard *.c)
CC=gcc
CFLAGS=--input-charset=UTF-8 --exec-charset=GB18030


$(ALL):$(SRC)
	$(CC) $(CFLAGS) -o $@ $^


clean:
	@rm -f *.o
	@rm -f *.exe
	@rm -f *.bin
	@rm -f *.enc
	@rm -f *.dec


test:$(ALL)
	./$(ALL) -e -o test.pak ./test
	./$(ALL) -d -o ./pak  ./test.pak


.PHONY:clean
.PHONE:test




